From: Georges Basile Stavracas Neto Date: Tue, 2 Jun 2020 17:21:02 +0000 (-0300) Subject: viewSelector: Make sure it's invisible when overview is hidden X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~317 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5569090d1cf4077c24581a8b2076b699829eefd0;p=gnome-shell.git viewSelector: Make sure it's invisible when overview is hidden Instead of overriding the hide() method, use the vfunc to reset, and hide the workspaces display too. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1295 --- diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js index 3ec97b1cf..aefe806a8 100644 --- a/js/ui/viewSelector.js +++ b/js/ui/viewSelector.js @@ -132,6 +132,7 @@ var ViewSelector = GObject.registerClass({ super._init({ name: 'viewSelector', x_expand: true, + visible: false, }); this._showAppsButton = showAppsButton; @@ -272,6 +273,7 @@ var ViewSelector = GObject.registerClass({ } animateToOverview() { + this.show(); this.reset(); this._workspacesDisplay.animateToOverview(this._showAppsButton.checked); this._activePage = null; @@ -301,9 +303,11 @@ var ViewSelector = GObject.registerClass({ this._workspacesDisplay.setWorkspacesFullGeometry(geom); } - hide() { + vfunc_hide() { this.reset(); this._workspacesDisplay.hide(); + + super.vfunc_hide(); } _addPage(actor, name, a11yIcon, params) {